using System;

namespace ConsoleCalculator {
    class Program {
        static void Main() {
            Console.Write("******Console Calculator******\n");
            Console.Write("Enter the first number: ");
            string str1 = Console.ReadLine();
            Console.Write("Enter the second number: ");
            string str2 = Console.ReadLine();
            Console.Write("Enter the operator: ");
            string opr = Console.ReadLine();
            int num1 = int.Parse(str1);
            int num2 = int.Parse(str2);
            switch (opr) {
                case "+":
                    Console.WriteLine("The result of "+str1+" "+opr+" "+str2+" is "+(num1+num2));
                    break;
                case "-":
                    Console.WriteLine("The result of "+str1+" "+opr+" "+str2+" is "+(num1-num2));
                    break;
                case "*":
                    Console.WriteLine("The result of "+str1+" "+opr+" "+str2+" is "+(num1*num2));
                    break;
                case "/":
                    Console.WriteLine("The result of "+str1+" "+opr+" "+str2+" is "+(num1/num2));
                    break;
                case "%":
                    Console.WriteLine("The result of "+str1+" "+opr+" "+str2+" is "+(num1%num2));
                    break;
                default :
                    Console.WriteLine("error: wrong operator");
                    break;
            }
            Console.Write("******Console Calculator******\n");
        }
    }
}